<%@ page import="com.jzj.Dao.impl.All" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024-06-18
  Time: 14:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<style>
    table td{text-align: center;border: 1px black solid}
    table{border-collapse: collapse}


</style>
<body>
<%
    request.setAttribute("path",request.getContextPath());
    All a=new All();
    request.setAttribute("arr",a.xianshi());
%>

<a href="add.jsp">
    <button>添加电影</button>
</a>

<table>
    <tr>
        <td>编号</td>
        <td>电影名称</td>
        <td>主演</td>
        <td>导演</td>
        <td>时长（分钟）</td>
        <td>类型名称</td>
    </tr>
    <c:forEach items="${arr}" var="b">
    <tr>
        <td>${b.id}</td>
        <td>${b.name}</td>
        <td>${b.actor}</td>
        <td>${b.dirctor}</td>
        <td>${b.time}</td>
        <td>${b.type_name}</td>
    </tr>
    </c:forEach>
</table>

</body>
</html>
